namespace Expect.Documentation.Fixtures_reference
{
    using System;
    using Expect.Core;
    using Expect.Core.Fixtures;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    
    
    // This file is intended to contain your fixtures, you could modify it's content freely because it won't be generated again
    // Please note that if you rename the parent .expect file, this file will not be renamed automatically
    public partial class ObjectFeedFixtureContainer
    {
        [FixtureHint("I create a contract |*|")]
        public void ICreateAContract(string varname)
        {
            Context.Data[varname] = new SampleContract();
        }

        [FixtureHint("The contract date for |*| must be |*|")]
        public void TheContractDateForMustBe(string varname, DateTime refdate)
        {
            SampleContract ct = (SampleContract)Context.Data[varname];
            Assert.AreEqual(refdate.Date, ct.StartDate.Date);
        }

        [FixtureHint("The contract amount for |*| must be |*|")]
        public void TheContractAmountForMustBe(string varname, double amount)
        {
            SampleContract ct = (SampleContract)Context.Data[varname];
            Assert.AreEqual(amount, ct.Amount);
        }
    }
}

